]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Bind emoji pager visibility to swipeTracker enabled state
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Nov 2022 10:41:36 +0000 (11:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 16 Nov 2022 18:06:27 +0000 (18:06 +0000)
The swipeTracker may connect gestures on the stage, so we might end up
in the odd situation that the swipeTracker is handling events for an
invisible actor. Avoid doing this.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2543>

js/ui/keyboard.js

index 66f35ea836470f6afd77603492dfec50345353ed..7e40f62af20e546ffb994a07cca5d2e9072886e1 100644 (file)
@@ -687,6 +687,10 @@ var EmojiPager = GObject.registerClass({
         this._swipeTracker = swipeTracker;
 
         this.connect('destroy', () => this._onDestroy());
+
+        this.bind_property(
+            'visible', this._swipeTracker, 'enabled',
+            GObject.BindingFlags.DEFAULT);
     }
 
     _onDestroy() {